package cn.mesmile.groovy.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author zb
 * @date 2021/11/25 17:54
 * @Description
 */
@Data
public class GroovyRuleInfoAddDTO {

	@ApiModelProperty("主键Id")
	private Long id;

	@NotBlank(message = "接口id不允许为空")
	@ApiModelProperty("接口id")
	private String interfaceId;

	@NotBlank(message = "beanName不允许为空")
	@ApiModelProperty("spring中BeanName")
	private String beanName;

	@NotBlank(message = "groovy脚本内容不允许为空")
	@ApiModelProperty("groovy内容")
	private String scriptContent;

	@ApiModelProperty("规则类型")
	private String ruleType;

	@ApiModelProperty("状态,是否可用")
	private Boolean status;

	@ApiModelProperty("扩展信息")
	private String extendInfo;

}
